import {createRouter,createWebHistory} from 'vue-router'
import Login from "@/components/Login.vue";
import BusinessHome from "@/components/BusinessHome.vue";
import Customer from "@/components/Customer.vue";
import Item from "@/components/Item.vue";
import Payment from "@/components/Payment.vue";
import HistoryOrder from "@/components/HistoryOrder.vue";
import OrderDetail from "@/components/OrderDetail.vue";
import BusinessShop from "@/components/BusinessShop.vue";
import ShopInfo from "@/components/ShopInfo.vue";
import AddShop from "@/components/AddShop.vue";
import ListItem from "@/components/ListItem.vue";
import BusinessItem from "@/components/BusinessItem.vue";
import AddItem from "@/components/AddItem.vue";
import BusinessHistoryOrder from "@/components/BusinessHistoryOrder.vue";
import BusinessOrder from "@/components/BusinessOrder.vue";
const routes=[
    {path:'/',component:Login},
    {path: '/businessHome',component: BusinessHome},
    {path: '/customer',component: Customer},
    {path: '/item',component: Item},
    {path: '/payment',component: Payment},
    {path: '/historyOrder',component: HistoryOrder},
    {path: '/orderDetail',component: OrderDetail},
    {path: '/businessShop',component: BusinessShop},
    {path: '/shopInfo',component: ShopInfo},
    {path: '/addShop',component: AddShop},
    {path: '/listItem',component: ListItem},
    {path: '/businessItem',component: BusinessItem},
    {path: '/addItem',component: AddItem},
    {path: '/businessOrder',component: BusinessOrder},
    {path: '/businessHistoryOrder',component: BusinessHistoryOrder},

]


const router=createRouter({
    history:createWebHistory(),
    routes:routes
})

export default router